<!DOCTYPE html>
<html lang="en" style="background: #fff">
<head>
<meta charset="utf-8" />
<title>RoubSite后台管理</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
<script type="text/javascript">
	var pname, pid;

	function onCheck(e, treeId, treeNode) {
		var treeObj = treeNode
		pname = treeNode.name;
		pid = treeNode.id;
	}
	var zTreeObj;
	var setting = {
			check : {
					enable : true,
					chkStyle : "radio",
					radioType : "all"
			},
			view : {
				dblClickExpand : false
			},
			data : {
				simpleData : {
						enable : true,
						idKey : "id",
						pIdKey : "pId",
						rootPId : 0
				}
			},
			callback : {
					onCheck : onCheck,
					beforeClick : function(treeId, treeNode) {
						var zTree = $.fn.zTree.getZTreeObj("organTree");
						zTree.selectNode(treeNode);
						if (treeNode.isParent) {
							zTree.expandNode(treeNode);
							return false;
						} else {
							return false;
						}
					},
					onRightClick : function(event, treeId, treeNode) {
						var zTree = $.fn.zTree.getZTreeObj("organTree");
						if (!treeNode && event.target.tagName.toLowerCase() != "button"
								&& $(event.target).parents("a").length == 0) {
							zTree.cancelSelectedNode();
						} else if (treeNode && !treeNode.noR) {
							zTree.selectNode(treeNode);
						}
					}

			}
	};
</script>
<script src="{$__WEBPATH__}/static/common/js/roubSite.js"></script>
<script type="text/javascript">
	RS.webPath = '{$__WEBPATH__}';
</script>
<script src="{$__WEBPATH__}/static/common/js/import.js"></script>
<style type="text/css">
div#rMenu {
	position: absolute;
	visibility: hidden;
	top: 0;
	text-align: left;
	padding: 2px;
}

div#rMenu ul li {
	margin: 1px 0;
	padding: 0 5px;
	cursor: pointer;
	list-style: none outside none;
}
</style>
</head>
<body>


	<!--主要内容begin-->
	<script src="{$__WEBPATH__}/static/admin/rsMenu/js/selectMenu.js"></script>
	<div class="layui-fluid">
		<div class="layui-row layui-col-space15">
			<div class="layui-col-md12">
				<button type="submit" class="layui-btn" onclick="submitData()">确定</button>
			</div>
		</div>
		<div class="layui-row layui-col-space15">
			<div class="layui-col-md12">
				<ul id="organTree" class="ztree"></ul>
			</div>
		</div>
	</div>

	<!--主要内容end-->
</body>
</html>

